package com.crazy.crazybusinessservice.controller;


import com.crazy.crazybusinessservice.service.StopService;
import com.crazy.crazycommon.common.BaseResponse;
import com.crazy.crazycommon.common.ResultUtils;
import lombok.extern.slf4j.Slf4j;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/liquidation")
@Slf4j
public class StopController {

    @Resource
    private StopService stopService;

    @GetMapping("/stop")
    public BaseResponse Stop() {

        stopService.MainHandle();

        return ResultUtils.success("OK");
    }
}
